# 作者：lian
class Cat:
    def __init__(self,new_name):
        self.name = new_name
        print('%s 来了'%self.name)
    def __del__(self):
        print('%s 我去了'%self.name)
tom=Cat("Tom")
print(tom.name)
del tom
print("-"*50)


